﻿using System.Drawing;

namespace TSites.Utility.Captcha
{
	public abstract class AbstractCaptcha
	{
		#region Properties
		
		public int Width { get; private set; }
		public int Height { get; private set; }

		public Font CaptchaFont { get; private set; }

		#endregion

		protected AbstractCaptcha(int width, int height)
		{
			Width = width;
			Height = height;
			CaptchaFont = new Font("Tahoma", 16.0f, FontStyle.Bold);
		}

		/// <summary>
		/// Generate the captcha output image
		/// </summary>
		/// <returns></returns>
		public abstract Bitmap GenerateCaptcha(string captcha);
	}
}
